import { ItemType } from 'antd/lib/menu/hooks/useItems';
import { createContext, Dispatch } from 'react';

export interface IVersionViewContext {
  prefixCls: string;
  curRes: Record<string, any>;
  userInfo: Record<string, any>;
  loading: boolean;
}
const INIT_VERSIONVIEW_VALUE: IVersionViewContext = {
  prefixCls: '',
  curRes: {},
  userInfo: {},
  loading: false,
};

const VersionManageContext = createContext<IVersionViewContext>(
  INIT_VERSIONVIEW_VALUE,
);

export { VersionManageContext };
